home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rockford Magazine
/
Rockford_Magazine_023_19xx_-_de_Side_A.d64
/
disk-tools v3.0
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
102 lines
10 rem disk-uttilitys
15 print"[147]"
20 poke53280,0:poke53281,0:print"[158]"
25 print"[145][145] disk-uttilitys v1.0 "
26 print"copyright 1992"
27 print"(c)by minnesota"
30 print"formatieren"
31 print"directory"
33 print"quit"
34 get a$
35 if a$=chr$(13)then100
36 if a$=""then38
37 if a$<>""then34
38 print"formatieren"
39 print" directory "
40 get b$
45 if b$=chr$(13)then 50
46 if b$="[145]"then51
47 if b$=""then54
48 if b$<>""then40
50 gosub 11000
51 print" directory "
52 print"formatieren"
53 goto 34
54 print" directory "
55 print" quit "
56 get c$
57 if c$=chr$(13)then60
58 if c$="[145]"then61
59 if c$<>"[145]"then56
60 sys64738
61 print" quit "
62 print" directory "
63 goto40
100 rem formatieren
110 print"[147]":print"sind sie sicher?"
111 get d$
115 if d$="j"then120
116 if d$="n"then10
117 if d$<>"n"then111
120 print"bitte zu formatierende diskette einlegen"
121 get f$
122 if f$=""then 121
123 print"die diskette wird jetzt formatiert!!!!! "
124 print"dauer:ungefaehr 90 sek."
125 open 1,8,15,"n:test,id"
126 input"name der diskette:";a$
127 close 1:open 1,8,15,"n:"+a$:close 1
133 print"noch einmal?"
134 get g$
135 if g$="j"then100
136 if g$="n"then10
137 if g$<>"n"then134
1000 rem dir
11000 r=-1
11010 t$(0)="del"
11020 t$(1)="seq"
11030 t$(2)="prg"
11040 t$(3)="usr"
11050 t$(4)="rel"
11060 open 1,8,15
11070 open 2,8,2,"#"
11080 print"[147]typ name laenge[146]"
11090 s=1
11100 print#1,"u1:"2;0;18;s
11110 get#2,t$,s$
11120 s$=s$+chr$(0)
11130 t$=t$+chr$(0)
11140 s=asc(s$)
11150 e=1
11160 print#1,"b-p";2;2+(e-1)*32
11170 a$=a$+chr$(0)
11180 get#2,a$
11190 a$=a$+chr$(0)
11200 if asc(a$)<128 and asc(t$)=0 then 11390
11210 if asc(a$)>127 then print t$(asc(a$)-128)" ";
11220 print#1,"b-p";2;5+(e-1)*32
11230 n$=""
11240 for a=1to16
11250 get#2,b$
11260 n$=n$+b$
11270 next a
11280 print n$" ";
11290 print#1,"b-p";2;30+(e-1)*32
11300 get#2,a$,b$
11310 a$=a$+chr$(0):b$=b$+chr$(0)
11320 l=asc(a$)+256*asc(b$)
11330 print l
11340 e=e+1
11350 if e<9 then 11160
11360 e=0
11370 if asc(t$)=0then 11390
11380 goto 11100
11390 close 2
11400 close 1
11410 get a$
11420 if a$=chr$(13)then10
11430 if a$="_"then10
11440 if a$=" "then10
11450 if a$=""then 10
11460 if a$<>""then11410